package de.hhbk.feedbackmodul.sessionbeans;

import java.util.List;

import javax.ejb.EJB;
import javax.ejb.Stateless;

import de.hhbk.feedbackmodul.daointerfaces.UserDaoIF;
import de.hhbk.feedbackmodul.entities.User;
import de.hhbk.feedbackmodul.remoteInterfaces.UserRemoteIF;

@Stateless
public class UserSessionBean implements UserRemoteIF {

	@EJB
	private UserDaoIF dao;
	
	@Override
	public List<User> getAllUsers() throws Exception {
		return dao.getAllUsers();
	}

	@Override
	public void createUser(User user) throws Exception {
		dao.createUser(user);

	}

	@Override
	public void updateUser(User user) throws Exception {
		dao.updateUser(user);

	}

	@Override
	public void deleteUser(User user) throws Exception {
		dao.deleteUser(user);
		
	}

}
